﻿/************************************************
 * Author       :   XXY
 * Blog         :   https://www.cnblogs.com/jzyl
 * Gitee        :   https://gitee.com/xiaobaichong
 * Email        :   1047185209@QQ.com
 * FileName     :   JSLibrary.cs
 * CreateData   :   2023/5/31 22:38:02
 * UnityVersion :   2021.3.20f1c1
 * Description  :   JS 调用库
************************************************/

using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using UnityEngine;

namespace Main
{
    /// <summary>
    /// WX JS 调用库
    /// </summary>
    public class JSLibrary
    {
#if WEIXINMINIGAME
        /// <summary>
        /// 打印日志
        /// </summary>
        [DllImport("__Internal")]
        public static extern void Log(string str,bool isErr=false);
        /// <summary>
        /// 是否是手机平台
        /// </summary>
        /// <returns></returns>
        [DllImport("__Internal")]
        public static extern bool IsMobile();
#endif
    }
}
